package com.yss.service;

import com.yss.domain.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CategoryService extends IService<Category>{

    List<Category> queryAllCategoryList();

    List<Category> queryFirstCategoryList();

    Boolean saveCategory(Category category);

    Boolean modifyCategory(Category category);

    Boolean removeCategoryById(Long categoryId);
    /**
     * 查询小程序中商品的一级类目集合
     * @param parentId  父节点id
     * @return
     */
    List<Category> queryWxCategoryListByPid(Long parentId);
}
